<?php
	include("scripts/connection.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Script-Type" content="text/javascript" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection, tv" />
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="css/style-ie.css" media="screen, projection, tv" /><![endif]-->
<link rel="stylesheet" href="css/style-print.css" type="text/css" media="print" />

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

<script type="text/JavaScript" src="script.js"></script>

<title>SDU</title>
</head>
<body>
<div id="wrapper">
		<?php
			include("header.php");
		?>
                    <div id="content-box-left">
				<div id="content-box-left-in">
					<div class="paging" title="" align='center'>
						<div class="box">
						    <div id="box-in">
								<div class="article">
									<h2 align='center'>TEACHERS</h2><br>	
									<form action="scripts/register.php" method="post" onsubmit="return Validate()" >
										<table align="center" cellpadding="0" cellspacing="0">
										<?php
												$result = mysql_query("SELECT * FROM user WHERE user_status=3");
												echo "<tr>";
												echo "<td style='border:solid white 3px;width:100px;text-align:center;'><b>Name</b></td>";
												echo "<td style='border:solid white 3px;width:100px;text-align:center;'><b>Surname</b></td>";
												echo "<td style='border:solid white 3px;width:100px;text-align:center;'><b>Login</b></td>";
												echo "<td style='border:solid white 3px;width:100px;text-align:center;'><b>Password</b></td>";
												echo "</tr>";
												while($row = mysql_fetch_array($result))
												{
													echo "<tr>";
													echo "<td style='border:solid white 3px;'>".$row['user_name']."</td>";
													echo "<td style='border:solid white 3px;'>".$row['user_surname']."</td>";
													echo "<td style='border:solid white 3px;'>".$row['user_login']."</td>";
													echo "<td style='border:solid white 3px;'>".$row['user_pass']."</td>";
													echo "</tr>";
												}
											?>
										</table>
									</form>
								</div>
							</div>
						</div>
						</div>
					</div>	
				 </div>
				</div>
</body>
</html>